package com.rahwi.rahwi_server.DefineEntity;

import com.rahwi.rahwi_server.vo.data.DetailReply;

import java.sql.Date;
import java.util.List;

/**
 * Created by dingning on 2021-12-26 1:14
 * 帖子详情对象
 */
public class PostData {

    boolean flag = false; //flag和showindex和主页面的一样， 用来操作图片的//
    boolean showindex = false; //返回false和0就行
    boolean isMoudleListInput = false; //返回false就行 这是用来标记是否 显示回复框的
    boolean more = true;//返回true就行
    boolean isReplay = false; //返回false就行 这是用来收起回复

    int userId; //层主id
    String user_nickname;//层主名称
    String user_photo;//层主头像
    int id; //该楼的id
    String content; //该楼的文字内容
    String images[]; //图片列表
    int position; //第几楼
    Date created_at; //创建时间

    boolean is_owner = false; //这个楼是不是楼主本人发的
    boolean is_post_by_admin = false; //这个楼是不是管理员发的(层主是不是 管理员)
    boolean delete_private = false; //有没有删除权限 如果当前的登陆用 户是楼主、层主或管理员就返回true

    boolean is_voted = false; //现在浏览网页的用户是否点过赞
    int like_num = 0; //该楼的点赞数量

    int current = 1; //楼中楼评论的当前页数，默认返回1
    int allpage = 0; //楼中楼评论的总页数 楼中楼评 论一页默认10个
    int reply_num = 0; //回复总数量

    List<DetailReply> replies;  //评论列表

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public boolean isShowindex() {
        return showindex;
    }

    public void setShowindex(boolean showindex) {
        this.showindex = showindex;
    }

    public String[] getImages() {
        return images;
    }

    public void setImages(String[] images) {
        this.images = images;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getAllpage() {
        return allpage;
    }

    public void setAllpage(int allpage) {
        this.allpage = allpage;
    }

    public boolean isIs_owner() {
        return is_owner;
    }

    public void setIs_owner(boolean is_owner) {
        this.is_owner = is_owner;
    }

    public String getUser_photo() {
        return user_photo;
    }

    public void setUser_photo(String user_photo) {
        this.user_photo = user_photo;
    }

    public boolean isIs_post_by_admin() {
        return is_post_by_admin;
    }

    public void setIs_post_by_admin(boolean is_post_by_admin) {
        this.is_post_by_admin = is_post_by_admin;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public Date getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    public boolean isDelete_private() {
        return delete_private;
    }

    public void setDelete_private(boolean delete_private) {
        this.delete_private = delete_private;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isIs_voted() {
        return is_voted;
    }

    public void setIs_voted(boolean is_voted) {
        this.is_voted = is_voted;
    }

    public int getLike_num() {
        return like_num;
    }

    public void setLike_num(int like_num) {
        this.like_num = like_num;
    }

    public int getReply_num() {
        return reply_num;
    }

    public void setReply_num(int reply_num) {
        this.reply_num = reply_num;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUser_nickname() {
        return user_nickname;
    }

    public void setUser_nickname(String user_nickname) {
        this.user_nickname = user_nickname;
    }

    public boolean isMoudleListInput() {
        return isMoudleListInput;
    }

    public void setMoudleListInput(boolean moudleListInput) {
        isMoudleListInput = moudleListInput;
    }

    public boolean isMore() {
        return more;
    }

    public void setMore(boolean more) {
        this.more = more;
    }

    public boolean isReplay() {
        return isReplay;
    }

    public void setReplay(boolean replay) {
        isReplay = replay;
    }

    public List<DetailReply> getReplies() {
        return replies;
    }

    public void setReplies(List<DetailReply> replies) {
        this.replies = replies;
    }
}
